﻿using System;
using Auth.Utility;

namespace Auth.Dtos.Base
{
    public class ClaimTypeDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid? Id { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 值类型key
        /// </summary>
        public short? ValueType { get; set; }

        /// <summary>
        /// 值类型value
        /// </summary>
        public string ValueTypeAsString { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 是否必要
        /// </summary>
        public bool? Required { get; set; }

        /// <summary>
        /// 是否静态
        /// </summary>
        public bool? IsStatic { get; set; }

        /// <summary>
        /// 数据时间戳
        /// </summary>
        public long Timestamp { get; set; } = DateUtility.UnixTimestampFromTime();

        /// <summary>
        /// 创建日期
        /// </summary>
        public string Created { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 更新日期
        /// </summary>
        public string Updated { get; set; }
    }
}
